<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>退出登录</title>
<script type="text/javascript"
	src="js/jquery-easyui-1.4.1/jquery.min.js"></script>
<script type="text/javascript"
	src="js/jquery-easyui-1.4.1/jquery.easyui.min.js"></script>
<script type="text/javascript"
	src="js/jquery-easyui-1.4.1/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="js/common.js"></script>
</head>
<body>
<script type="text/javascript">
$(function(){
	$.messager.confirm('确认','确定退出登录吗？',function(r){
	    if (r){
        	$.get("/admin/logout", function(data){
    			if(data.status == 200){
    				$.messager.alert('提示','退出登录成功!');
    				location.href="login"
    			}else{
    				$.messager.alert('提示','退出登录失败!');
    			}
    		});
	    }
	});
})
</script>
</body>
</html>